if (window->current_paint.surface == NULL)
{
- g_warning (G_STRLOC": no preceding call to gdk_window_begin_paint_region(), see documentation");
+ g_warning (G_STRLOC": no preceding call to gdk_window_begin_draw_frame(), see documentation");
return;
}
* creates a rectangular region for you. See
* gdk_window_begin_paint_region() for details.
*
- **/
+ * Deprecated: 3.22: Use gdk_window_begin_draw_frame() instead
+ */
void
gdk_window_begin_paint_rect (GdkWindow *window,
const GdkRectangle *rectangle)
* gdk_window_end_paint() is required for each call to
* gdk_window_begin_paint_region().
*
- **/
+ * Deprecated: 3.22: Use gdk_window_begin_draw_frame() instead
+ */
void
gdk_window_begin_paint_region (GdkWindow *window,
const cairo_region_t *region)
cairo_region_t *gdk_window_get_visible_region(GdkWindow *window);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_22_FOR(gdk_window_begin_draw_frame)
void gdk_window_begin_paint_rect (GdkWindow *window,
const GdkRectangle *rectangle);
GDK_AVAILABLE_IN_3_16
void gdk_window_mark_paint_from_clip (GdkWindow *window,
cairo_t *cr);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_22_FOR(gdk_window_begin_draw_frame)
void gdk_window_begin_paint_region (GdkWindow *window,
const cairo_region_t *region);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_22_FOR(gdk_window_end_draw_frame)
void gdk_window_end_paint (GdkWindow *window);
GDK_AVAILABLE_IN_3_22
*
* Widgets are double buffered by default; you can use this function
* to turn off the buffering. “Double buffered” simply means that
- * gdk_window_begin_paint_region() and gdk_window_end_paint() are called
+ * gdk_window_begin_draw_frame() and gdk_window_end_draw_frame() are called
* automatically around expose events sent to the
- * widget. gdk_window_begin_paint_region() diverts all drawing to a widget's
- * window to an offscreen buffer, and gdk_window_end_paint() draws the
+ * widget. gdk_window_begin_draw_frame() diverts all drawing to a widget's
+ * window to an offscreen buffer, and gdk_window_end_draw_frame() draws the
* buffer to the screen. The result is that users see the window
* update in one smooth step, and don’t see individual graphics
* primitives being rendered.
* Note: if you turn off double-buffering, you have to handle
* expose events, since even the clearing to the background color or
* pixmap will not happen automatically (as it is done in
- * gdk_window_begin_paint_region()).
+ * gdk_window_begin_draw_frame()).
*
* In 3.10 GTK and GDK have been restructured for translucent drawing. Since
* then expose events for double-buffered widgets are culled into a single